<template>
    <div class="page malus-login">
        <div class="card form-card login">
            <div class="card-header"><a class="brand" href="/"><img
                src="../assets/brand_logo.d5971366.svg" alt=""></a></div>
            <div class="card-body">
                <div class="sign-tab"><h3 class="active">邮箱登录</h3>
                    <h3 class="">手机登录</h3></div>
                <form class="email-sign" autocomplete="off"><input class="form-control" type="text"
                                                                   placeholder="输入邮箱" value=""><span
                    class="invalid-feedback">Invalid feedback</span><input class="form-control" type="password"
                                                                           placeholder="输入密码" value="">
                    <button class="btn btn-primary">立即登录</button>
                </form>
                <div class="form-bottom"><a href="/signup?utm_source=dashboard&amp;utm_medium=signin"
                                            target="_self">注册账号</a><a href="/dashboard/forgot">忘记密码？</a></div>
                <div class="social-login">使用第三发账号注册或登录</div>
                <div class="social-btn-group">
                    <div class="btn-social"><img src="../assets/social-wechat.51696ab6.svg"
                                                 alt="wechat"><span>微信</span></div>
                    <div class="btn-social" id="google-login"><img
                        src="../assets/social-google.1d6273f2.svg" alt="wechat"><span>Google</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "Login"
}
</script>

<style scoped lang="scss">
    .page {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
        .card {
            margin: 160px auto 0;
            max-width: 420px;
            box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
            position: relative;
            width: 100%;
            border: none;
            display: flex;
            flex-direction: column;
            min-width: 0;
            word-wrap: break-word;
            background-color: #fff;
            background-clip: initial;
            border-radius: 3px;
            .card-header {
                border-radius: 2px 2px 0 0;
                min-height: 40px;
                padding: .5rem 1rem;
                border-bottom: 1px solid rgba(0,40,100,.06);
                background: none;
                display: flex;
                align-items: center;
                a {
                    margin-right: 8px;
                    img {
                        width: 80px;
                    }
                }
            }

            .card-body {
                flex: 1 1 auto;
                margin: 0;
                padding: 1.5rem;
                position: relative;
                .sign-tab {
                    margin-top: 2px;
                    display: flex;
                    align-items: center;
                    margin-bottom: 24px;
                    border: 1px solid #e8e7f8;
                    border-right: none;
                    border-radius: 4px;
                    h3 {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 50%;
                        height: 40px;
                        font-size: 15px;
                        font-weight: 500;
                        color: #444;
                        border-right: 1px solid #e8e7f8;
                        cursor: pointer;
                        transition: all .2s ease;
                        padding: 0;
                        margin: 0;
                    }
                    .active {
                        box-shadow: inset 0 2px 0 #4d55e8;
                        background: #fafaff;
                        color: #333;
                    }
                }
                .email-sign {
                    input {
                        margin-bottom: 18px;
                        display: block;
                        width: 100%;
                        padding: .375rem .75rem;
                        font-size: .9375rem;
                        line-height: 1.6;
                        color: #495057;
                        background-color: #fff;
                        background-clip: padding-box;
                        border: 1px solid rgba(0,40,100,.12);
                        border-radius: 3px;
                        transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
                    }
                    button {
                        width: 100%;
                        margin-top: 0!important;
                        font-size: 16px;
                        color: #fff;
                        background-color: #4d55e8;
                        background-color: var(--primary);
                        border-color: #4d55e8;
                        border-color: var(--primary);
                    }
                }
                .form-bottom {
                    margin-top: 20px;
                    display: flex;
                    justify-content: space-between;
                    a {
                        color: var(--gray);
                        font-size: 13px;
                    }
                }
                .social-login {
                    margin-top: 28px;
                    display: block;
                    text-align: center;
                    font-size: 12px;
                    position: relative;
                    color: #868e96;
                }
                .social-login:before {
                    content: "";
                    display: block;
                    width: 80px;
                    height: 1px;
                    background: rgba(0,40,100,.12);
                    position: absolute;
                    top: 7px;
                    left: 0;
                }
                .social-login:after {
                    content: "";
                    display: block;
                    width: 80px;
                    height: 1px;
                    background: rgba(0,40,100,.12);
                    position: absolute;
                    top: 7px;
                    right: 0;
                }
                .social-btn-group {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-top: 24px;
                    .btn-social {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border: 1px solid rgba(0,40,100,.12);
                        height: 36px;
                        width: 47%;
                        border-radius: 4px;
                        cursor: pointer;
                        img {
                            width: 22px;
                            margin-right: 4px;
                        }
                    }
                }
            }
        }
    }
</style>
